package com.lizhi.note.dto;


import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class AppUserDTO {

    private Long id;

    @Size(max = 20)
    private String username;

    private String activeName;

    @Size(max = 11)
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;

    @Size(max = 120)
    private String password;

    private String email;
}
